package com.ysstech.valuation.service;

import com.ysstech.valuation.entity.SecuritiesDealDetailed;
import com.ysstech.valuation.entity.StockDealDetailed;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lishuangliang
 * @since 2021-02-22
 */
public interface StockDealDetailedService extends IService<StockDealDetailed> {

    /**
     * 获取股票交易流水信息，分组汇总的，用来生成股票业务凭证
     *
     * @param accountId
     * @param fdate
     * @return
     * @throws Exception
     */
    public List<StockDealDetailed> queryDatas(String accountId, String fdate) throws Exception;

    /**
     * 获台ETF账数据当天的细交易数据
     * 关联台账表没有清算完成的
     *
     * @param dealDetailed
     * @return
     * @throws Exception
     */
    public Map<String, List<SecuritiesDealDetailed>> queryStockDealDetailed(StockDealDetailed dealDetailed) throws Exception;
}
